package IDEA;

/**
 * @author Cheng Jun
 * @version 1.1
 * @date 2019/11/7 13:56
 */
public class MethodAnnotation {

    /**
     * 打印出姓名和年龄连接的字符串
     *
     * @param name 姓名
     * @param age  年龄
     * @return java.lang.String
     * @author Cheng Jun
     * @date 2019/11/7 14:25
     */
    private static String Hello(String name, int age) {
        return name + age;
    }

    /**
     * @param args
     * @return void
     * @author Cheng Jun
     * @date 2019/11/7 17:09
     */
    public static void main(String[] args) {
        System.out.println(Hello(null, 18));
        System.out.println(Hello("cauchy6317", 19));
        System.out.println("2019-10-11".substring(5, 7));
        System.out.println("2019-10-11".substring(8, 10));

    }
}
























